package com.mikasa.springboot.example.elasticsearch;

import com.mikasa.springboot.example.domain.elasticsearch.Book;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * Created by User on 17/1/22.
 */
public interface BookRepository extends ElasticsearchRepository<Book, String> {

    List<Book> findByTitle(String title);
    List<Book> findByAuthor(String author);
}
